﻿<UserControl
			 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
			 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
			 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
			 xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
			 xmlns:ee="http://schemas.microsoft.com/expression/2010/effects" x:Class="BaMusaSoft.RPS.View.SettingsView" 
			 mc:Ignorable="d" FlowDirection="RightToLeft"
			 Loaded="ViewLoaded" Unloaded="ViewUnLoaded" d:DesignWidth="776" d:DesignHeight="600" >
	<DockPanel x:Name="dockPanel" >
		<StackPanel DockPanel.Dock="Top" Orientation="Horizontal" Margin="0,20" Height="62" RenderTransformOrigin="0.496,0.345">
			<Button Content="حفظ" HorizontalAlignment="Left" Height="40" MinWidth="70" Margin="3" Command="{Binding SaveCommand}"/>
			<Button Content="إسترجاع الإفتراضي" Height="40" Margin="3" MinWidth="70" Command="{Binding ResetCommand}"/>
		</StackPanel>
		<Grid Margin="10,0,0,0" VerticalAlignment="Top">
			<Grid.ColumnDefinitions>
				<ColumnDefinition Width="Auto" />
				<ColumnDefinition/>
			</Grid.ColumnDefinitions>
			<Grid.RowDefinitions>
				<RowDefinition Height="Auto"/>
				<RowDefinition Height="Auto"/>
				<RowDefinition Height="Auto"/>
				<RowDefinition Height="Auto"/>
				<RowDefinition Height="Auto"/>
				<RowDefinition Height="Auto"/>
				<RowDefinition Height="Auto"/>
			</Grid.RowDefinitions>
			<TextBlock Margin="0" TextWrapping="Wrap"><Run FlowDirection="RightToLeft" Language="ar-sa" Text="التعهدات"/></TextBlock>
			<TextBlock Margin="0" TextWrapping="Wrap" Grid.Row="3"><Run FlowDirection="RightToLeft" Language="ar-sa" Text="التقارير"/></TextBlock>
			<TextBlock Margin="0" TextWrapping="Wrap" Grid.Row="5" VerticalAlignment="Top"><Run FlowDirection="RightToLeft" Language="ar-sa" Text="عام"/></TextBlock>
			<Grid x:Name="SchedulesSettings" Margin="0,0,0,15" Grid.Row="2" Grid.Column="1" HorizontalAlignment="Left" Width="718.947">
				<Grid.ColumnDefinitions>
					<ColumnDefinition Width="Auto" />
					<ColumnDefinition/>
					<ColumnDefinition Width="Auto"/>
				</Grid.ColumnDefinitions>
				<TextBlock Margin="0" TextWrapping="Wrap" RenderTransformOrigin="9.935,-5.311"><Run FlowDirection="RightToLeft" Language="ar-sa" Text="نموذج تقرير التعهدات"/></TextBlock>
				<TextBox Margin="18.807,0,0,0" TextWrapping="Wrap" Text="{Binding AllSchedulesExcelTemplatePath, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" MinHeight="30" Grid.Column="1" d:LayoutOverrides="Height" />
                <Button Content="..." Margin="0" Command="{Binding OpenDialogCommand}" CommandParameter="AllSchedulesExcelTemplatePath" Grid.Column="2" Width="25"/>
			</Grid>
			<Grid x:Name="ReportingsSettings" Margin="0,0,0,15" Grid.Row="4" Grid.Column="1" HorizontalAlignment="Left" Width="718.947">
				<Grid.ColumnDefinitions>
					<ColumnDefinition Width="Auto"/>
					<ColumnDefinition Width="*"/>
					<ColumnDefinition Width="Auto"/>
				</Grid.ColumnDefinitions>
				<TextBlock Margin="0" TextWrapping="Wrap"><Run FlowDirection="RightToLeft" Language="ar-sa" Text="نموذج طباعة التعهد"/></TextBlock>
				<TextBox Margin="27.444,0,0,8" TextWrapping="Wrap" Text="{Binding ScheduleFormTemplatePath, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" MinHeight="30" Grid.Column="1"/>
                <Button Content="..." Margin="0,0,0,8" Command="{Binding OpenDialogCommand}" CommandParameter="ScheduleFormTemplatePath" Grid.Column="2" RenderTransformOrigin="0.5,0.5" d:LayoutOverrides="GridBox" Width="25" >
					<Button.RenderTransform>
						<TransformGroup>
							<ScaleTransform ScaleX="-1"/>
							<SkewTransform/>
							<RotateTransform/>
							<TranslateTransform/>
						</TransformGroup>
					</Button.RenderTransform>
				</Button>
			</Grid>
			<Grid x:Name="GeneralSettings" Margin="0" Grid.Row="6" Grid.Column="1" HorizontalAlignment="Left" Width="718.947">
				<Grid.ColumnDefinitions>
					<ColumnDefinition Width="Auto"/>
					<ColumnDefinition/>
					<ColumnDefinition Width="Auto" />
				</Grid.ColumnDefinitions>
				<Grid.RowDefinitions>
					<RowDefinition Height="Auto" />
					<RowDefinition Height="Auto" />
					<RowDefinition Height="Auto" />
				</Grid.RowDefinitions>
				<TextBlock Margin="0,0,0,8" TextWrapping="Wrap" VerticalAlignment="Center"><Run FlowDirection="RightToLeft" Language="ar-sa" Text="السنة الحالية"/></TextBlock>
				<TextBox Margin="8,0,0,8" TextWrapping="Wrap" Text="{Binding CurrentYear, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, ValidatesOnExceptions=True}" MinHeight="30" Grid.Column="1" HorizontalAlignment="Left" Width="120.517" />
				<TextBlock Margin="0,0,0,8" TextWrapping="Wrap" Grid.Row="1" d:LayoutOverrides="Height" VerticalAlignment="Center"><Run FlowDirection="RightToLeft" Language="ar-sa" Text="موقع قاعدة بيانات العقار"/></TextBlock>
				<TextBox Margin="8,0,0,8" TextWrapping="Wrap" Text="{Binding IRSDatabasePath, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" MinHeight="30" Grid.Column="1" Grid.Row="1"/>
				<TextBlock Margin="0,0,0,8" TextWrapping="Wrap" Text="ملف تسجيل الأحداث" Grid.Row="2" Height="17" VerticalAlignment="Center"/>
				<TextBox Margin="8,0,0,8" TextWrapping="Wrap" Text="{Binding LogFilePath, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" MinHeight="30" Grid.Column="1" Grid.Row="2"/>
				<Button Content="..." Margin="0,0,0,8" Command="{Binding OpenDialogCommand}" CommandParameter="IRSDatabasePath" Width="25" Grid.Column="2" Grid.Row="1"/>
				<Button Content="..." Margin="0,0,0,8" RenderTransformOrigin="-3.92,0.546" Command="{Binding OpenDialogCommand}" CommandParameter="LogFilePath" Grid.Column="2" Grid.Row="2" Width="25" />
			</Grid>
			<Rectangle Grid.Column="1" Fill="#FFF4F4F5" Height="1" Margin="5,8,0,0" Stroke="#FF8EB2F9" VerticalAlignment="Top"/>
			<Rectangle Grid.Column="1" Fill="#FFF4F4F5" Height="1" Margin="5,8,0,0" Stroke="#FF8EB2F9" VerticalAlignment="Top" Grid.Row="3"/>
			<Rectangle Grid.Column="1" Fill="#FFF4F4F5" Height="1" Margin="5,8,0,0" Stroke="#FF8EB2F9" VerticalAlignment="Top" Grid.Row="5"/>
		</Grid>
	</DockPanel>
</UserControl>
